package 反射.T11;

public class Dog extends Animal{

    private int age;

    @Override
    public String toString() {
        return  super.toString()+
                "Dog{" +
                "id='" + getId() + '\'' +
                ", name='" + getName() + '\'' +
                '，' +
                "age=" + age +"'}";
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
